package com.cctv.haierstore.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cctv.common.utils.PageUtils;
import com.cctv.common.utils.Query;
import com.cctv.haierstore.product.dao.MenuDao;
import com.cctv.haierstore.product.dao.SkuInfoDao;
import com.cctv.haierstore.product.entity.SkuInfoEntity;
import com.cctv.haierstore.product.entity.WxMeanuEntity;
import com.cctv.haierstore.product.service.MenuService;
import com.cctv.haierstore.product.service.SkuInfoService;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.math.BigDecimal;
import java.util.Map;


@Service("menuService")
public class MenuServiceImpl extends ServiceImpl<MenuDao, WxMeanuEntity> implements MenuService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WxMeanuEntity> page = this.page(new Query<WxMeanuEntity>().getPage(params), new QueryWrapper<WxMeanuEntity>());
        return new PageUtils(page);
    }

    @Override
    public void saveMenuEntity(WxMeanuEntity wxMeanuEntity) {
        this.baseMapper.insert(wxMeanuEntity);
    }

    @Override
    public PageUtils queryPageByCondition(Map<String, Object> params) {
        return null;
    }
}